import { createRouter, createWebHashHistory } from "vue-router";
//import Home from "../views/Home.vue";
import Home from "../components/Home.vue";

const router = new VueRouter({
    routes:[
        {
            path: '/',
            component: () => import('index.html'),   // 原来引用的地址
            redirect:'/home',   // 重定位后页面加载的页面
        },
        {
            path:'/home',
            component:Home
        }
    ]
})